n = 3
while n > 0:
    a = input('input:')
    if a == '1':
        print('Monday')
        break
    elif a == '2':
        print('Tuesday')
        break
    elif a == '3':
        print('Wednesday')
        break
    elif a == '4':
        print('Thursday')
        break
    elif a == '5':
        print('Friday')
        break
    elif a == '6':
        print('Saturday')
        break
    elif a == '7':
        print('Sunday')
        break
    else:
        print('错误的输入,请重新输入1-7之间的数字')
    n = n - 1
else:
    print('错误的输入超过3次，程序退出！')